package com.itcast.service.pojo;


public class User {
    private int id1;
    private String name1;
    private String address1;

    public User() {
        System.out.println("调用了无参构造");
    }

    public User(int id1, String name1, String address1) {
        this.id1 = id1;
        this.name1 = name1;
        this.address1 = address1;
        System.out.println("调用了有参构造");
    }

    public void setId1(int id1) {
        this.id1 = id1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public void setAddress1(String address1) {
        this.address1 = address1;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id1 +
                ", name='" + name1 + '\'' +
                ", address='" + address1 + '\'' +
                '}';
    }
}
